<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\BaseController;
use think\facade\Request;
use think\facade\View;
use think\facade\Db;

class order{
    public function order_list()
    {
        $keywords =Request::get('keywords');
        $status=Request::get('cid');
        $smin = Request::get('smin');
        $smax = Request::get('smax');
        $min1 = Request::get('min');
        $max1 = Request::get('max');
        $data=[
            'status'       => $status,
            'keywords'  => $keywords,
            'smin'      => $smin,
            'smax'      => $smax,
            'min'       => $min1,
            'max'       => $max1,
        ];
        $rt1=\app\admin\model\OrderStatus::getOrderStuList();


        $rt=\app\admin\model\Order::getOrderList($data,input('get.'));
        View::assign('arr',$rt);
        View::assign('arr1',$rt1);
        View::assign('status',$status);
        View::assign('min',$smin);
        View::assign('min1',$min1);
        View::assign('max',$smax);
        View::assign('max1',$max1);
        View::assign('keyword',$keywords);
        return View::fetch();
    }
}